package edu.csl.study.coreserver2.service;

import edu.csl.study.coreserver2.controller.ConsumerController;
import edu.csl.study.coreserver2.feign.MyFeignClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HelloServiceImpl implements HelloService{
    Logger logger = LoggerFactory.getLogger(HelloServiceImpl.class);

    @Autowired
    MyFeignClient myFeignClient;
    public String hello(){
        Logger logger = LoggerFactory.getLogger(ConsumerController.class);
        logger.info("server2 - HelloService - hello 方法");
        return myFeignClient.hello() ;
    }
}
